package com.wwj.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wwj.springboot.entity.CmfzUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author wwj
 */
@Mapper
public interface CmfzUserMapper extends BaseMapper<CmfzUser> {
    List<CmfzUser> selectByPage(@Param("page") int page, @Param("limit") int limit,@Param("name") String userName, @Param("phone") String userTelphone);



    int selectCounts(@Param("name") String userName, @Param("phone") String userTelphone);

    void addUserList(List<CmfzUser> userList);

    List<Map> selectBySexCount();


    List<Map>   selectByProvinceCount();
    List<Map>   selectByWeekCount();

}